package org.shop.common.until;

public class TracePrint {

	public static void printTrace(Exception e) {
		StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
		for (StackTraceElement s : stackTrace) {
			System.out.println("类名：" + s.getClassName() + "  ,  java文件名：" + s.getFileName() + ",  当前方法名字："
					+ s.getMethodName() + "" + " , 当前代码是第几行：" + s.getLineNumber() + ", ");
		}
		
		System.out.println(e.getMessage());
		
	}

}
